Finds the first parent of a given type for a particular FrameworkElement

Namespace:  C1.Xaml
Assembly:  C1.Xaml (in C1.Xaml.dll)

Syntax

C#
public static T FindParent<T>(
	this FrameworkElement elem
)
where T : FrameworkElement
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindParent(Of T As FrameworkElement) ( _
	elem As FrameworkElement _
) As T

Parameters

elem
Type: FrameworkElement

Type Parameters

T

Return Value

Return Value

The first object whose type is

See Also